<h1>Editing equipment</h1>

<%= error_messages_for :equipment %>

<% form_for(:equipment, :url => equipment_item_path(@equipment), :html => { :method => :put }) do |f| %>
  <p>
    <b>设备名称</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>设备型号</b><br />
    <%= f.text_field :etype %>
  </p>

  <p>
    <b>设备图片</b><br />
    <%= f.text_field :image_url %>
  </p>

  <p>
    <b>设备说明</b><br />
    <%= f.text_field :description %>
  </p>

  <p>
    <%= submit_tag "确定" %>
  </p>
<% end %>

<%= link_to 'Show', equipment_item_path(@equipment) %> |
<%= link_to 'Back', equipment_path %>
